<template>
	<view  class="body">
		
        <view><vant-button type="primary" size="small"  @click="jumpPage(1)">subPackages1</vant-button></view>
        <view>我的</view>
        <view><vant-button type="primary" size="small"  @click="jumpPage(2)">subPackages2</vant-button></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
            jumpPage(type){
                switch (type){
                    case 1 : 
                    uni.navigateTo({
                        url: '../../subPackages1/home/index'
                    });
                    break;

                    case 2 : 
                    uni.navigateTo({
                        url: '../../subPackages2/home/index'
                    });
                    break;
                }
               
              
            }
		}
	}
</script>

<style lang="scss" scoped>
	
</style>
